﻿<Window x:Class="Jungle_Timers.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Helpers="clr-namespace:Jungle_Timers.Helpers" xmlns:Controls="clr-namespace:Jungle_Timers.Controls" Title="MainWindow" ShowInTaskbar="True" 
         WindowStyle="None"
        ResizeMode="NoResize"
        SizeToContent="WidthAndHeight"
        AllowsTransparency="True"
        Background="#44000000"
        WindowStartupLocation="CenterScreen"
        Cursor="Data/Images/Hand1.cur"
        Topmost="True"    
        Loaded="Window_Loaded"
        Focusable="False"
        PreviewMouseDown="Window_PreviewMouseDown"
        
        >
    <Window.Resources>
        <ResourceDictionary>
            <FrameworkElement x:Key="Cursor" Cursor="Data/Images/Hand1.cur" />
        </ResourceDictionary>
    </Window.Resources>
   
    <DockPanel LastChildFill="True">
        <DockPanel DockPanel.Dock="Top">
            <Button Name="ExpandButton" Width="22" Height="22" HorizontalContentAlignment="Left" PreviewMouseLeftButtonDown="ExpandButton_PreviewMouseLeftButtonDown"  Visibility="Collapsed">
                <Button.Content>
                    <Image Height="16" Width="16" HorizontalAlignment="Center" VerticalAlignment="Center" Source="/Jungle%20Timers;component/Data/Images/Icons/expand.png" />
                </Button.Content>
            </Button>
            <Button Name="CollapseButton" Width="22" Height="22" HorizontalContentAlignment="Left" PreviewMouseLeftButtonDown="CollapseButton_PreviewMouseLeftButtonDown">
                <Button.Content>
                    <Image Height="16" Width="16" HorizontalAlignment="Center" VerticalAlignment="Center" Source="/Jungle%20Timers;component/Data/Images/Icons/collapse.png" />
                </Button.Content>
            </Button>
            <Button Name="DragButton" Width="22" Height="22" HorizontalAlignment="Right" HorizontalContentAlignment="Left" PreviewMouseLeftButtonDown="DragButton_PreviewLeftMouseDown" >
                <Button.Content>
                    <Image Height="16" Width="16" HorizontalAlignment="Center" VerticalAlignment="Center" Source="/Jungle%20Timers;component/Data/Images/Icons/drag.png" />
                </Button.Content>
            </Button>
            <Button Name="CloseButton" Width="22" Height="22" HorizontalContentAlignment="Left" Margin="3 0 0 0" HorizontalAlignment="Right" PreviewMouseLeftButtonDown="CloseButton_PreviewMouseLeftButtonDown">
                <Button.Content>
                    <Image Height="16" Width="16" HorizontalAlignment="Center" VerticalAlignment="Center" Source="/Jungle%20Timers;component/Data/Images/Icons/cross-button.png" />
                </Button.Content>
            </Button>
        </DockPanel>
        <DockPanel Name="TimerPanel" DockPanel.Dock="Top">
            <StackPanel Orientation="Horizontal" DockPanel.Dock="Top">
                <Button Focusable="False" Name="GolemButton" Width="30" Height="30" HorizontalContentAlignment="Left" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="3 0 0 0" Padding="0" PreviewMouseLeftButtonDown="GolemButton_PreviewMouseLeftButtonDown">
                    <Button.Content>
                        <Image Height="30" Width="30" HorizontalAlignment="Center" VerticalAlignment="Center" Source="/Jungle%20Timers;component/Data/Images/Icons/golem.png" />
                    </Button.Content>
                </Button>
                <Button Name="LizardButton" Width="30" Height="30" HorizontalContentAlignment="Left" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="3 0 0 0" Padding="0" PreviewMouseLeftButtonDown="LizardButton_PreviewMouseLeftButtonDown">
                    <Button.Content>
                        <Image Height="30" Width="30" HorizontalAlignment="Center" VerticalAlignment="Center" Source="/Jungle%20Timers;component/Data/Images/Icons/lizard.png" />
                    </Button.Content>
                </Button>
                <Button Name="DragonButton" Width="30" Height="30" HorizontalContentAlignment="Left" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="3 0 0 0" Padding="0" PreviewMouseLeftButtonDown="DragonButton_PreviewMouseLeftButtonDown">
                    <Button.Content>
                        <Image Height="30" Width="30" HorizontalAlignment="Center" VerticalAlignment="Center" Source="/Jungle%20Timers;component/Data/Images/Icons/dragon.png" />
                    </Button.Content>
                </Button>
                <Button Focusable="False" Name="BaronButton" Width="30" Height="30" HorizontalContentAlignment="Left" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="3 0 0 0" Padding="0" PreviewMouseLeftButtonDown="BaronButton_PreviewMouseDown" >
                    <Button.Content>
                        <Image Height="30" Width="30" HorizontalAlignment="Center" VerticalAlignment="Center" Source="/Jungle%20Timers;component/Data/Images/Icons/baron.png" />
                    </Button.Content>
                </Button>
            </StackPanel>
            <ItemsControl ItemsSource="{Binding TimerManager}" DockPanel.Dock="Bottom">
                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <WrapPanel IsItemsHost="True" Width="150" />
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <Controls:ActiveTimer Height="50" Width="50" MouseDoubleClick="ActiveTimer_MouseDoubleClick"></Controls:ActiveTimer>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>
        </DockPanel>
     
    </DockPanel>
</Window>
